from selenium import webdriver
from bs4 import BeautifulSoup
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
import time

# 不自动关闭浏览器
option = webdriver.EdgeOptions()
option.add_experimental_option("detach", True)
browser = webdriver.Edge(options=option)
browser.maximize_window()
browser.get('https://loginmyseller.taobao.com/')
time.sleep(5)
# driver.get_screenshot_as_file("777.png") #截图保存
# driver.quit()
# driver.close()
# 登录千牛
element = browser.find_element(by=By.CLASS_NAME, value='iconfont')
# element.click()
print('ok')
